package com.mz.ozy.mvp.view;

import android.content.Context;

import com.mz.ozy.base.BasePresenter;
import com.mz.ozy.base.BaseView;
import com.mz.ozy.bean.AddressListBean;

/**
 * @author
 * @date 2018/7/25
 * @description
 */
public class AddressContract {

     public interface View extends BaseView {
         void onListSuccess(AddressListBean bean);
         void onAddSuccess();
         void onUpdateSuccess();
         void onDelSuccess();

         void onDefaultSuccess();
     }

     public interface  Presenter extends BasePresenter<View> {
         void onList(Context context);
         void onAdd(Context context, String shuname, String shmobile, String shaddr,
                    String area0id, String area1id, String area2id, String isdefault);
         void onUpdate(Context context, String aid, String shuname, String shmobile, String shaddr,
                       String area0id, String area1id, String area2id);

         void onDefault(Context context, String aid);

         void onDel(Context context, String aid);
    }


}
